From 2d61801bce4430a2dd91c544e8ca7b1fd117b74b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 16 Jun 2009 13:39:00 +0100 Subject: [PATCH] x86, hvm: set vcpu->is_initialised after restore/migration After restore/migration, the xenctx command for auxiliary vcpus fails with a message "xc_vcpu_getcontext: No data available". Signed-off-by: Kouya Shimura --- xen/arch/x86/hvm/hvm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 561e30d15b..fcf8d43ff9 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -662,8 +662,9 @@ static int hvm_load_cpu_ctxt(struct domain *d, hvm_domain_context_t *h) v->fpu_initialised = 1; /* Auxiliary processors should be woken immediately. */ - if ( test_and_clear_bit(_VPF_down, &v->pause_flags) ) - vcpu_wake(v); + v->is_initialised = 1; + clear_bit(_VPF_down, &v->pause_flags); + vcpu_wake(v); return 0; } -- 2.30.2